import React from 'react';

const iconRight =  '';

function ListItem(props) {
  let {name, url} = props
  let handleJump= () => {
    let pageInfo = {
      url: `${url}`,
      animated: true
    };
    Navigator.openPage(pageInfo, (result) => {
        console.log('Page result: ' + JSON.stringify(result));
    });
  }
  return (
    <view className="item" onTap={handleJump}>
      <text className="item-title">{name}</text>
      <image className="item-icon" src={iconRight}></image>
    </view>
  );
}

export default ListItem;
